/*
 * @Description:
 * @Date: 2024-07-09 14:40:33
 * @LastEditTime: 2024-07-17 10:07:30
 */
import request from '@/config/axios'
import qs from 'qs'

//获取文章列表
export const getArticlePage = async (data) => {
  return await request.post({ url: '/countryside/article/page', data })
}
//新增文章
export const createArticle = async (data) => {
  return await request.post({ url: '/countryside/article/create', data })
}
//更新文章 
export const updateArticle = async (data) => {
  return await request.put({ url: '/countryside/article/update', data })
}
//获取文章详情
export const getArticleDetail = async (id) => {
  return await request.get({ url: '/countryside/article/get?id=' + id })
}


//删除文章 
export const deleteArticle = async (ids) => {
  return await request.delete({
    url: `/countryside/article/delete`,
    params: {
      ids: ids.join(',')
    }
  })
}

